/**
 * Created by yindu on 2018/12/17.
 */
var express = require('express');
var router = express.Router();
var db = require('../libs/mysql');

router.get('/',function (req,res) {
    var id = req.query.id;
    db.query(`SELECT * FROM home_details WHERE home_id=${id}`,(err,data)=>{
        if(err){
            res.send('报名人列表查询').end();
        }else {
            res.json(data);
        }
    })
})
module.exports = router;